package com.kitchen.ui.dialog.words
{
	import com.kitchen.ui.dialog.com.HeadBackIcon;
	
	import flash.display.Bitmap;
	import flash.display.BitmapData;
	import flash.display.Sprite;
	import flash.geom.Point;
	import flash.geom.Rectangle;
	
	internal class WordsHead extends Sprite
	{
		public var h:int;
		public var w:int;
		public function WordsHead(main:BitmapData)
		{
			super();
			this.layout(main);
		}
		
		private function layout(main:BitmapData):void{
			this.h = 90;
			this.w = 225;
			var headBg:HeadBackIcon = new HeadBackIcon(main);
			this.addChild(headBg);
			var head:BitmapData = new BitmapData(145,55);
			head.copyPixels(main, new Rectangle(700, 535, 145, 55), new Point());
			var headbd:Bitmap = new Bitmap(head);
			headbd.x = 40;
			headbd.y = 15;
			this.addChild(headbd);
		}
	}
}